package com.oracle.application.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * <p>
 * 图书表
 * </p>
 *
 * @author zhaoran
 * @since 2021-07-06
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 图书名称
     */
    private String proname;

    /**
     * 图书编号
     */
    private String prosn;

    /**
     * 价格
     */
    private Double proprice;

    /**
     * 数量
     */
    private Integer pronum;

    /**
     * 图片
     */
    private String proimg;

    /**
     * 描述
     */
    @TableField("`desc`")
    private String desc;

    /**
     * 简介
     */
    private String profullname;

    private String unit;

    /**
     * 创建时间
     */
    private LocalDateTime createdate;

    /**
     * 状态1-发售，2-下架，0-无货
     */
    @TableField("`status`")
    private Integer status;


}
